#define _CRT_SECURE_NO_WARNINGS  1

#if 0

#include<iostream>

using namespace std;

class date
{
public:
	date(int year = 2024, int month =7, int day = 11)
	{
		_year = year;
		_month = month;
		_day = day;
	}

	void Print()
	{
		cout << "Hello World!" << "It is " << _year << '/' << _month << '/' << _day << endl;
	}


private:
	
	int _year;
	int _month;
	int _day;
};

void Swap(int& a, int& b)
{
	int tmp = a;
	a = b;
	b = tmp;
}

namespace num
{
	int a = 22;
}

int main()
{
	date now;
	now.Print();

	date cow(-1,-1,-1);
	cow.Print();
	int a = 12;
	const int& a1 = 3*a;
	const int& a2 = a1;
	cout << a1 << endl;
	cout << a2 << endl;
	int& b = a;
	int& b1 = num::a;
	cout << b <<  b1<<endl;
	Swap(b, b1);
	cout << b <<  b1<<endl;
	
	double f = 2.718281828;
	const int& _f = f;
	const double& f1 = f;
	cout << _f << endl;
	cout << f1 << endl;

	return 0;
}

#endif 

#include<iostream>

using namespace std;

class date
{
public:
	/*date()
	{
		_year = 2024;
		_month = 7;
		_day = 11;
	}*/

	date(int year = 2005 , int month = 5, int day = 12)
	{
		_year = year;
		_month = month;
		_day = day;
	}

	void Print()
	{
		cout << _year << '/' << _month << '/' << _day << endl;
	}

private:
	int _year;
	int _month;
	int _day;
};

int main()
{
	date a;
	a.Print();
	
	date b(2);
	b.Print();



	return 0;
}